﻿<!DOCTYPE html>
<html class="" lang="zh">
<head>
    <script src="~/Models/jquery.js"></script>
    <script src="~/饿了么-开店申请_files/app.js"></script>
    <script src="~/饿了么-开店申请_files/vendor.js"></script>
    <link href="~/饿了么-开店申请_files/app_002.css" rel="stylesheet" />
    <link href="~/饿了么-开店申请_files/app.css" rel="stylesheet" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>店铺信息</title>
    <meta name="description" content="饿了么-开店申请">
    <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <script src="~/Models/JSCookie.js"></script>
    <!-- base href="https://kaidian.ele.me/" -->

    <script src="~/Models/jquery.form.min.js"></script>
</head>
<body ng-app="nevermore" class="ng-scope">
    <!-- uiView: --><ui-view autoscroll="true" class="ng-scope" style="">
        <header class="row ng-scope ng-isolate-scope" show-user="false">
            <div>
                <!-- ngIf: showUser -->
                <!-- ngIf: !showUser --><a ui-sref="home" class="title ng-scope" ng-if="!showUser" href="https://kaidian.ele.me/"> <span>饿了么商户中心</span> </a><!-- end ngIf: !showUser -->
                <a class="notification-link" ng-click="openNotification()">点击查看《廉正告知书》</a> <!-- ngIf: showUser --> <!-- ngIf: !showUser --><div class="pull-right tips ng-scope" ng-if="!showUser"> <span>如开店过程遇到问题,请咨询 <a href="https://ecs-im.ele.me/?from=visitor-merchant&amp;ezone=open" target="_blank">在线客服</a></span> </div><!-- end ngIf: !showUser -->
            </div>
        </header>
        <div class="main-container ng-scope" ui-view="" autoscroll="true" style="">
            <div class="qualification step-container ng-scope">
                <form action="/Home/Upt" method="post" enctype="multipart/form-data" name="formQualify" class="form form-horizontal ng-valid-maxlength ng-valid-date ng-valid-business-license-pic ng-valid-catering-services-pic ng-valid-identity-positive-pic ng-valid-identity-opposite-pic ng-valid-identity-hold-pic ng-dirty ng-valid ng-valid-required" id="form-add" novalidate="" style="">
                    <div class="form-group font-16 flex">
                        <label class="control-label"><b class="required">*</b>账号</label>
                        <div class="col-sm-4">
                            <input name="UserNum" id="UserNum" value="" class="form-control" required="" style="" type="text" readonly>
                        </div>
                    </div>
                    <div class="outline">

                        <div class="form-group flex">
                            <label class="control-label ml-20"><b class="required">*</b>店铺名称</label>
                            <div class="col-sm-4">
                                <input name="MerchantsID" class="form-control" value="" required="" style="" type="hidden">
                                <input name="MerchantsName" class="form-control" required="" style="" type="text">
                            </div>
                        </div>
                        <div class="form-group flex">
                            <label class="control-label ml-20"><b class="required">*</b> 店铺地址</label>
                            <div class="col-sm-4">
                                <input name="MerchantsAddress" class="form-control width-400" required="" style="" value="" type="text">
                            </div>
                        </div>
                        <div class="form-group flex">
                            <label class="control-label ml-20"><b class="required">*</b>手机号</label>
                            <div class="col-sm-4">
                                <input name="SPhone" class="form-control" required="" style="" type="text">
                                <input name="UserID" class="form-control" quired="" style="" type="hidden" />
                                <input name="BPhotoName" class="form-control" quired="" value="标题.png" style=""type="hidden">
                            </div>
                        </div>
                        <div class="form-group flex">
                            <label class="control-label ml-20"><b class="required">*</b>店铺图片</label>
                            <div class="col-sm-3">
                                <input name="SPhotoName" class="form-control" required="" style=""type="file">
                                <input name="SPhotoPath" class="form-control" required="" style="" type="hidden">
                            </div>
                        </div>

                        <div class="form-group flex">
                            <label class="control-label ml-20"><b class="required">*</b>店铺类型</label>
                            <div class="col-sm-3">

                                <select name="MerchantsType" class="form-control">
                                    <option>美食</option>
                                    <option>正餐优选</option>
                                    <option>超市</option>
                                    <option>精选小吃</option>
                                    <option>鲜果购</option>
                                    <option>下午茶</option>
                                </select>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
            <div class="footer-btns ng-scope">
                <button class="btn btn-primary btn-next" type="button" id="add">提交</button>
            </div>
        </div>
    </ui-view>
    <script src="~/饿了么-开店申请_files/vendor.js"></script>
    <script src="~/饿了么-开店申请_files/app.js"></script>
    <script async="async" src="~/饿了么-开店申请_files/maps"></script>


</body>
</html>
<script>
    $("#UserNum").val(getCookie("UserNum"));
    $("#add").click(function () {
        var options = {
            type: "POST",
            success: function (result) {
                if (result == 1) {
                    alert('请等待审核');
                    location.reload();
                }
                else {
                    alert('添加失败');
                }
            }
        }
        $("#form-add").ajaxForm(options).submit();
    });

    //function add() {
    //    //var MerchantsID = $("#MerchantsID").val();
    //    //var MerchantsName = $("#MerchantsName").val();
    //    //var MerchantsAddress = $("#MerchantsAddress").val();
    //    //var SPhone = $("#SPhone").val();
    //    //var UserID = $("#UserID").val();
    //    //var SPhotoName = $("#SPhotoName").val();
    //    //var SPhotoPath = $("#SPhotoPath").val();
    //    //var MerchantsType = $("#MerchantsType").val();
    //    //var MerchantsState = $("#MerchantsState").val();
    //    //var UserNum = $("#UserNum").val();

    //    alert(SPhotoName);
    //    $.ajax({
    //        //url: "/Home/Upt",
    //        type: "post",
    //        //data: {
    //        //    merchantsid: merchantsid,
    //        //    merchantsname: merchantsname,
    //        //    merchantsaddress: merchantsaddress,
    //        //    sphone: sphone,
    //        //    userid: userid,
    //        //    bphotoname: "标题.png",
    //        //    sphotoname: sphotoname,
    //        //    sphotopath: " ",
    //        //    merchantstype: merchantstype,
    //        //    merchantsstate: merchantsstate,
    //        //    usernum: usernum
    //        //},
    //        success: function (obj) {
    //            if (obj == 1) {
    //                alert("请等待审核...");
    //                location.href = "/Home/Login";
    //            }
    //            else if (obj == 0) {
    //                alert("添加失败");

    //            }
    //        }
    //         $("#form-add").ajaxForm(options).submit();
    //    })

    //}
</script>

